package com.ruoyi.wcf.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wcf.mapper.WcfDisposeBusinessSectionMapper;
import com.ruoyi.wcf.domain.WcfDisposeBusinessSection;
import com.ruoyi.wcf.service.IWcfDisposeBusinessSectionService;

/**
 * 客户管理-营业区间设置Service业务层处理
 *
 * @author ruoyi
 * @date 2022-03-30
 */
@Service
public class WcfDisposeBusinessSectionServiceImpl implements IWcfDisposeBusinessSectionService
{
    @Autowired
    private WcfDisposeBusinessSectionMapper wcfDisposeBusinessSectionMapper;

    /**
     * 查询客户管理-营业区间设置
     *
     * @param id 客户管理-营业区间设置主键
     * @return 客户管理-营业区间设置
     */
    @Override
    public WcfDisposeBusinessSection selectWcfDisposeBusinessSectionById(Long id)
    {
        return wcfDisposeBusinessSectionMapper.selectWcfDisposeBusinessSectionById(id);
    }

    /**
     * 查询客户管理-营业区间设置列表
     *
     * @param wcfDisposeBusinessSection 客户管理-营业区间设置
     * @return 客户管理-营业区间设置
     */
    @Override
    public List<WcfDisposeBusinessSection> selectWcfDisposeBusinessSectionList(WcfDisposeBusinessSection wcfDisposeBusinessSection)
    {
        return wcfDisposeBusinessSectionMapper.selectWcfDisposeBusinessSectionList(wcfDisposeBusinessSection);
    }

    /**
     * 新增客户管理-营业区间设置
     *
     * @param wcfDisposeBusinessSection 客户管理-营业区间设置
     * @return 结果
     */
    @Override
    public int insertWcfDisposeBusinessSection(WcfDisposeBusinessSection wcfDisposeBusinessSection)
    {
        wcfDisposeBusinessSection.setCreateTime(DateUtils.getNowDate());
        return wcfDisposeBusinessSectionMapper.insertWcfDisposeBusinessSection(wcfDisposeBusinessSection);
    }

    /**
     * 修改客户管理-营业区间设置
     *
     * @param wcfDisposeBusinessSection 客户管理-营业区间设置
     * @return 结果
     */
    @Override
    public int updateWcfDisposeBusinessSection(WcfDisposeBusinessSection wcfDisposeBusinessSection)
    {
        return wcfDisposeBusinessSectionMapper.updateWcfDisposeBusinessSection(wcfDisposeBusinessSection);
    }

    /**
     * 批量删除客户管理-营业区间设置
     *
     * @param ids 需要删除的客户管理-营业区间设置主键
     * @return 结果
     */
    @Override
    public int deleteWcfDisposeBusinessSectionByIds(Long[] ids)
    {
        return wcfDisposeBusinessSectionMapper.deleteWcfDisposeBusinessSectionByIds(ids);
    }

    /**
     * 删除客户管理-营业区间设置信息
     *
     * @param id 客户管理-营业区间设置主键
     * @return 结果
     */
    @Override
    public int deleteWcfDisposeBusinessSectionById(Long id)
    {
        return wcfDisposeBusinessSectionMapper.deleteWcfDisposeBusinessSectionById(id);
    }
}
